The BSE Sensex was down 326 points at 23,277 and the Nifty was down 107 points at 7,056.
The 30-share Sensex ended up 1 point at 27,459 and the 50-share Nifty ended down 1 point at 8,341.
Markets extended losses after the first hour of trade with HDFC Group shares leading the decline.
The BSE Sensex zoomed 318 points to end at 33,351.57, while the broader Nifty spurted 88 points to 10,242.65.
This is the highest closing for both the indices since May 15.
From the 30-Sensex pack, 26 stocks ended with gains led by Tata Steel and ICICI Bank
The 30-share Sensex stayed in the green for the better part of the session and hit the day's high of 38,297.70 as buying pace gathered momentum towards the fag-end.
Tata Motors was the biggest gainer in the Sensex pack, rallying 2.94 per cent. It was followed by Vedanta, Bajaj Finance, Sun Pharma, ONGC, ICICI Bank, Bajaj Auto, Tata Steel, RIL, HDFC duo, L&T and SBI, rising up to 2.78 per cent.
Omkeshwar Singh, head, Rank MF, a mutual fund investment platform, answers your queries.
Most of the session's gains for both the indices were wiped out as investors rushed to book profits ahead of F&O expiry on Thursday and also due to concerns over stretched valuations.
Among Sensex constituents, HCL Tech suffered the most by diving 2.26 per cent, followed by HDFC shedding 2.10 per cent.
The NSE Nifty after shuttling between 10,397.60 and 10,279.35 points, ended 47 points, or 0.45 per cent lower at 10,301.05.
In absolute terms, the year closed with the market capitalisation of all BSE-listed companies rising by Rs 45.5 lakh crore to Rs 152 lakh crore, or an increase of 42.8 per cent, compared to the closing value on December 30, 2016, says Pavan Burugula.
The fall came on the back of a massive selloff in NBFCs, led by DHFL which skidded over 50 per cent on fears of a liquidity crisis.
The Sensex opened with a positive gap of 34 points at 7,815, and touched a high of 7,846 in early noon deals.
The NSE 50-share Nifty spurted 97.25 points, or 0.92 per cent, to 10,715.50
Sentiment was hurt after market regulator Sebi directed bourses to initiate action against 331 suspected shell companies.
Broader markets outperformed with BSE Midcap and BSE Smallcap adding 0.23% and 0.45%, respectively
The BSE Sensex spurted 130.00 points to end at 35,980.93, while the broader NSE Nifty advanced 30.35 points to 10,802.15.
Shares of L&T Technology Services, an arm of engineering giant Larsen and Toubro, made a decent debut on the bourses
Sustained FII inflows and fresh spell of buying by domestic institutional investors fuelled the rally
Profit-booking by participants in view of the domestic markets' recent record-setting run fuelled the downtrend
The NSE Nifty too ended 58.60 points, or 0.54 per cent, higher at 10,967.30 after shuttling between 10,985.15 and 10,928 during the session.
Small- and mid-cap stocks continued facing selling pressure due to stretched valuations.
Sun Pharma was the biggest gainer in the Sensex pack, advancing 1.79 per cent.
The 30-share Sensex ended up 214 points at 27,890 and the 50-share Nifty closed up 52 points at 8,430.
In the broader markets, the BSE Midcap and Smallcap indices extended gains and were up over 1% each
Investment in market leaders with a safety-first approach could yield reasonable returns across sectors.
The BSE gauge Sensex fell 73.88 points to 35,548.26 and the NSE Nifty slid 17.85 points to 10,799.85, taking cues from tumbling global shares.
Nifty, which has struggled around 8550-8560 levels managed to blast past this resistance and close above the psychological mark of 8600.
Omkeshwar Singh, Head, Rank MF, a mutual fund investment platform, answers your queries.
The session was marked by volatility and stock-specific action, even as the overall sentiment remains risk-averse, brokers said.
The broader NSE Nifty too dived by 101.65 points, or 0.97 per cent, to close at 10,350.15.
Other than ITC, other laggards include PowerGrid, Infosys, M&M, NTPC, SBI, HDFC, Kotak Bank, HDFC Bank, TCS, Hero MotoCorp, Coal India, ONGC, RIL, Asian Paint, IndusInd Bank, ICICI Bank, Maruti Suzuki, Bajaj Auto, Tata Motors, Bharti Airtel and Axis Bank.
The Sensex has now lost 878.32 points in six sessions -- its longest string of losses in six months.
The broader Nifty of National Stock Exchange scaled the 10,200 mark intra day before closing at 10,184.85, showing a sizeable gain of 38.30 points, or 0.38 per cent.
Notable losers were ONGC, Axis Bank, ITC, SBI, ICICI Bank, NTPC, Hero Motocorp, Sun Pharma and Bharti Airtel who fell by up to 2.80 per cent.
The NSE Nifty settled the day 38.85 points or 0.37 per cent lower at 10,500.90 after shuttling between 10,590.55 and 10,456.65, intra-day.
Markets finished lower for the sixth consecutive day as hopes of the Goods and Services tax (GST) bill being passed in the current session of the Parliament faded considerably.
The broader NSE Nifty, after shuttling between 10,651.60 and 10.532.70 points on alternate bouts of buying and selling, closed 6.20 points, or 0.06 per cent, down at 10,576.30.